package com.ming.feign;

import com.ming.es.ProdEs;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Author:何元才
 * @Desc:
 * @data:2021-04-08 15:30
 */
@FeignClient(value = "search-service")
public interface CollectSearchFeign {

    /**
     * 远程调用搜索服务 根据ids搜索商品
     *
     * @param prodIds
     * @return
     */
    @PostMapping("/search/getProdEsByIds")
    List<ProdEs> getProdEsByIds(@RequestBody List<Long> prodIds);

}
